<template>
  <view>
    <cm-nav back>
      <template v-slot:center>应用设置</template>
    </cm-nav>
    <cm-card :is-shadow="false">
      <cm-switch v-for="(item, index) in configKeys" :key="index" :checked="config[item.key]" 
        label-width="200" :label="item.label"
        @change="changeHandler($event, item.key)"></cm-switch>
    </cm-card>
  </view>
</template>

<script src="./config.js"></script>

<style lang="stylus">
@import './config.styl'
</style>